/* ------www.rakeshmondal.info-------
	ledsettings.h

 * LED Settings and Port config
 * In any circumstances www.rakeshmondal.info shall not be liable for any  
 * special, incidental or consequential damages, for any reason whatsoever. 
 * No guarantee or warranty whatsoever. */
/* -------------------------------------------------------------------- */



//LED settings 

#define setpin() TRISB = 0;  //Setting all PORTB pins to output pin RB0-7

 #define LD1      LATBbits.LATB0       // RB0
 #define LD2      LATBbits.LATB1       // RB1
 #define LD3      LATBbits.LATB2       // RB2
 #define LD4      LATBbits.LATB3       // RB3

	#define LED1_on()  LD1 = 1;        // High
	#define LED2_on()  LD2 = 1;       // High
	#define LED3_on()  LD3 = 1;      // High
	#define LED4_on()  LD4 = 1;     // High

	  #define LED1_off()   LD1 = 0;    // Low
	  #define LED2_off()   LD2 = 0;   // Low 
	  #define LED3_off()   LD3 = 0;  // Low
	  #define LED4_off()   LD4 = 0; // Low
 




/* --------------------------------------------------------- */